package cn.stylefeng.guns.modular.form.mapper;

import cn.stylefeng.guns.modular.form.entity.EgForm;
import cn.stylefeng.guns.modular.form.model.EgFormParam;
import cn.stylefeng.guns.modular.form.model.EgFormResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author fengty
 * @since 2020-10-11
 */
public interface FormMapper extends BaseMapper<EgForm> {

    /**
     * 获取列表
     *
     * @author fengty
     * @Date 2020-10-11
     */
    List<EgFormResult> customList(@Param("paramCondition") EgFormParam paramCondition);

    /**
     * 获取map列表
     *
     * @author fengty
     * @Date 2020-10-11
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") EgFormParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author fengty
     * @Date 2020-10-11
     */
    Page<EgFormResult> customPageList(@Param("page") Page page, @Param("paramCondition") EgFormParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author fengty
     * @Date 2020-10-11
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") EgFormParam paramCondition);

}
